package com.RLFZ.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.RLFZ.entity.ChinaTotal;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;

/**
 * (china_total)数据Mapper
 *
 * @author zh
 * @since 2022-08-25 17:16:58
 * @description 
*/
@Mapper
public interface ChinaTotalMapper extends BaseMapper<ChinaTotal> {

    @Select("select max(id) from china_total")
    Integer maxID();

    @Insert("insert into china_total(confirm,input,severe,heal,dead,suspect,update_time) value(confirm=#{confirm},input=#{input},severe=#{severe},heal=#{heal},dead=#{dead},suspect=#{suspect},update_time=#{update_time})")
    Integer insert(@Param("confirm") Integer confirm, @Param("input") Integer input, @Param("severe")  Integer severe, @Param("heal")  Integer heal, @Param("dead")  Integer dead, @Param("suspect")  Integer suspect, @Param("update_time")  Date update_time);

    @Insert("insert into china_total(confirm,input,severe,heal,dead,suspect,update_time) value(#{confirm},#{input},#{severe},#{heal},#{dead},#{suspect},#{update_time})")
    Integer insertt(@Param("confirm") Integer confirm, @Param("input") Integer input, @Param("severe")  Integer severe, @Param("heal")  Integer heal, @Param("dead")  Integer dead, @Param("suspect")  Integer suspect, @Param("update_time")  String update_time);
}
